package com.baor.controller;

import com.baor.base.domain.UserVO;
import com.baor.base.util.R;
import com.baor.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

@RestController
public class LoginController {
    @Autowired
    private UserService userService;

    @RequestMapping(value="/api/login")
    public Mono<R> login(@RequestBody UserVO loginUser){
        return this.userService.login(loginUser);
    }
}
